package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 设备接入协议对象 t_agreement
 * 
 * @author wp
 * @date 2023-08-10
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@TableName(value = "t_agreement", excludeProperty = {"createBy", "updateBy"})
public class Agreement extends BaseEntity {

    /** 唯一主键 */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("ID")
    private Long id;

    /** 协议名称 */
    @ApiModelProperty("协议名称")
    private String agreementName;

    /** 域名 */
    @ApiModelProperty("域名")
    private String domain;

    /** IP */
    @ApiModelProperty("IP")
    private String ip;

    /** 端口 */
    @ApiModelProperty("端口")
    private Integer port;

    /** 类型  0:TCP 1:UDP */
    @ApiModelProperty("类型0:TCP 1:UDP")
    private Integer type;
}
